#ifndef VOLUMEWIDGET_H
#define VOLUMEWIDGET_H

#include <QGraphicsPixmapItem>
#include <QGraphicsSceneMouseEvent>
#include <QApplication>
#include <qdebug.h>
#include <QPixmap>
#include <math.h>

class volumeWidget : public QObject, public QGraphicsPixmapItem
{
        Q_OBJECT
public:
    volumeWidget(QString icon);

private:
    QPixmap * volPix;
    void mousePressEvent(QGraphicsSceneMouseEvent * event);
    void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
    qreal r;
    qreal angle_big;
    qreal p_angle_big;
    int computeVolume(QGraphicsSceneMouseEvent * event);

signals:
    void volumeChanged(int value);
};

#endif // VOLUMEWIDGET_H
